<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;

class AdminLoginCheck
{
    public function handle($request, Closure $next, $guard = null)
    {
    	$value = session('adminBackSet');
		if (empty($value)) {
			return redirect('logincp');
		}
        return $next($request);
    }
}
